package com.example.second.chain.classes;

import android.util.Log;

/**
 * @ClassName: ConcreteHandler1$
 * @Description: java类作用描述
 * @Author: xinya
 * @CreateDate: 2020/12/22$ 14:33$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public class ConcreteHandler2 extends Handler {
    private static final String TAG = "ConcreteHandler2";
    @Override
    public void handleRequest(String request) {
        if (request.equals("two")) {
            Log.d(TAG, "handleRequest: 我已经处理了消息");
            return;
        }
        if (getNext() != null) {
            getNext().handleRequest(request);
            return;
        }
        
        Log.e(TAG, "handleRequest: 没有人处理这个消息");
    }
}
